<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="/WEB-INF/html.tld" prefix="html" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<form:form id="financialProduct" modelAttribute ="financial" method="POST" action="${addFinancial}" name="financialProduct">

<html:table attributes="class='inputTable' style='width:100%'">
  <html:tr>
    <html:td><label><spring:message code="label.finance.product.name" /></label></html:td>
    <html:td><label><spring:message code="label.finance.product.code" /></label></html:td>
    <html:td><label><spring:message code="label.finance.product.type" /></label></html:td>
    <html:td><label>Status</label></html:td>
  </html:tr>
  <html:tr>
    <html:td><form:input path="financial.name" name="financial.name"></form:input></html:td>
    <html:td><form:input path="financial.financialProductCode" name="financial.financialProductCode" class='required'></form:input></html:td>
    <html:td><form:input path='financial.productType' name='financial.productType'></form:input></html:td>
   	<html:td><form:select path="financial.status" items="${lovBean.list('VND.TYPE')}" /></html:td>
  </html:tr>
  <html:tr>
    <html:td><label><spring:message code="label.min.amount" /> </label></html:td>
    <html:td><label><spring:message code="label.max.amount" /></label></html:td>
    <html:td><label><spring:message code="label.effective.date" /> </label></html:td>
    <html:td><label><spring:message code="label.expiry.date" /></label></html:td>
  </html:tr>
   <html:tr>
    <html:td><form:input path="financial.lowerAmount" class="amount required" name="financial.lowerAmount"></form:input></html:td>
    <html:td><form:input path="financial.upperAmount" class="amount required" name="financial.upperAmount" ></form:input></html:td>
    <html:td><form:input path='financial.startDate' class="date required" name='financial.startDate'></form:input></html:td>
    <html:td><form:input path='financial.expiryDate' class="date required" name='financial.expiryDate'></form:input></html:td>
  </html:tr>
  <html:tr>
    <html:td><label>Min Term</label></html:td>
    <html:td><label>Max Term</label></html:td>
    <html:td><label>Dealer Fees</label></html:td>
    <html:td><label>Service Tax</label></html:td>
  </html:tr>
   <html:tr>
    <html:td><form:select path="financial.minTerm" items="${lovBean.list('TERM')}" /></html:td>
    <html:td><form:select path="financial.maxTerm" items="${lovBean.list('TERM')}" /></html:td>
    <html:td><form:input path='financial.dealerFees' class="number required" ></form:input></html:td>
    <html:td><form:input path='financial.serviceTax' class="number required" ></form:input></html:td>
  </html:tr>
   <html:tr>
    <html:td><label>Allow Amortization</label></html:td>
    <html:td>&nbsp;</html:td>
    <html:td>&nbsp;</html:td>
    <html:td>&nbsp;</html:td>
  </html:tr>
   <html:tr>
    <html:td><form:select path="financial.maxAmortization" items="${lovBean.list('TERM')}" /></html:td>
    <html:td>&nbsp;</html:td>
    <html:td>&nbsp;</html:td>
    <html:td>&nbsp;</html:td>
  </html:tr>
  </html:table>
 <form:hidden path="financial.financialProductId"/>
</form:form>